package com.ctshk.rpc.order.season.service;

/**
 * <p>
 * 套票订单-收据表 服务类
 * </p>
 *
 * @author Eric
 * @since 2021-03-24
 */
public interface SeasonOrderStockService {

    /**
     * 记录库存
     * @param orderId
     * @param stockId
     * @param category
     * @param soldNum
     * @param userId
     */
    void operateStock(Long orderId, Long stockId, int category, int soldNum, int state, String checkType, Long userId);

    /**
     * 退款，還庫存
     * @param orderId
     * @param productId
     * @param attrId1
     * @param attrId2
     * @param ticketNum
     * @param userId
     */
    void backToStock(Long orderId, Long productId, Long attrId1, Long attrId2, Integer ticketNum, Long userId);
}
